﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StolenBykes

{
    public class Bike
    {
        private int bikeId;
        public string kindOfBike;
        public string thereIsStolen;
        public string nameOfFirm;
        public int sizeOfFrame;
        private static int numberOfBike;

        static Bike()
        {
            numberOfBike = 0;

        }

        public Bike()
        {
            this.bikeId = ++numberOfBike;
        
        }
    
    public Bike(string kindOfBike)
        :this()
        {
            this.kindOfBike = kindOfBike;
        }
    public Bike(string kindOfBike, string thereIsStolen)
        : this(kindOfBike) 
    {
        this.thereIsStolen = thereIsStolen;
    }
    public Bike(string kindOfBike, string thereIsStolen, string nameOfFirm)
        : this(kindOfBike, thereIsStolen)
    {
        this.nameOfFirm = nameOfFirm;
     

    }
    public Bike(string kindOfBike, string thereIsStolen, string nameOfFirm, int sizeOfFrame)
        : this(kindOfBike, thereIsStolen, nameOfFirm)
    {
        this.sizeOfFrame = sizeOfFrame;
    }

    public int BikeId
    {
        get
        {
            return this.bikeId;
        }
    }
    public void MassageWheel()
    {
        Console.WriteLine("У велосипеда спустило колесо");
        Console.ReadKey();
    }
   }

   

 

}
